package com.nageoffer.shortlink.admin;

import com.nageoffer.shortlink.remote.config.DefaultFeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan({"com.nageoffer.shortlink.common","com.nageoffer.shortlink.admin"})
@MapperScan("com.nageoffer.shortlink.admin.dao.mapper")
@EnableFeignClients(basePackages = "com.nageoffer.shortlink.remote",defaultConfiguration = DefaultFeignConfig.class)
public class AdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class,args);
    }
}
